package com.yn.xr.common.exception.base;
/**
 * 自定义异常基类
 * @author HX1401028
 *
 */
public class BaseException extends Exception{

	private static final long serialVersionUID = 9036815212838932408L;
	//异常代码
	private short errorCode;
	//异常描述
	private String errorMsg;
	
	public BaseException(short errorCode, String errorMsg) {
		super();
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}
	
	public BaseException(short errorCode){
		this.errorCode = errorCode;
	}

	public short getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(short errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
}
